#include "ValidationUtils.h"

#include <stdio.h>
#include <iostream>
#include <sys/stat.h>
#include <locale>

bool ValidationUtils::fileExists(string filename)
{
	struct stat fileInfo;
	return (stat(filename.c_str(), &fileInfo) == 0);
}

bool ValidationUtils::isNumeric( string number)
{
	const char* cadena = number.c_str();
	
	for (int i = 0; i < number.size(); i++)
	{
		if(isalpha(cadena[i])){
			return false;
		}
	}

	return true;

}